package com.youzhi.snake;

import javax.swing.*;
import java.net.URL;

/**
 * 存放静态资源的地方
 */
public class Data {
    public static URL head1 = Data.class.getResource("/image/snake1.png");
    public static URL head2 = Data.class.getResource("/image/snake2.png");
    public static URL head3 = Data.class.getResource("/image/snake3.png");
    public static URL head4 = Data.class.getResource("/image/snake4.png");
    public static URL bean1 = Data.class.getResource("/image/bean1.png");
    public static URL bean2 = Data.class.getResource("/image/bean2.png");
    public static URL body1 = Data.class.getResource("/image/body1.png");
    public static URL game = Data.class.getResource("/image/game.jpg");

    public static ImageIcon HEAD1 = new ImageIcon(head1);
    public static ImageIcon HEAD2 = new ImageIcon(head2);
    public static ImageIcon HEAD3 = new ImageIcon(head3);
    public static ImageIcon HEAD4 = new ImageIcon(head4);

    public static ImageIcon BEAN1 = new ImageIcon(bean1);
    public static ImageIcon BEAN2 = new ImageIcon(bean2);

    public static ImageIcon BODY1 = new ImageIcon(body1);
    public static ImageIcon Game = new ImageIcon(game);

}
